package com.dubbo.utils;

public final class StackTraceUtils {

    private StackTraceUtils() {
    }

    public static String getInvokerClassName() {
        StackTraceElement[] temp = Thread.currentThread().getStackTrace();
        StackTraceElement a = temp[2];
        return a.getClassName();
    }

    public static String getInvokerMethodName() {
        StackTraceElement[] temp = Thread.currentThread().getStackTrace();
        StackTraceElement a = temp[2];
        return a.getMethodName();
    }
}
